import axios from 'axios';


export const yiyuziApi = {
	setSpine: () => {
		// return axios.get("http://49.234.88.43:8080/wiki/spine/set");
		// return axios.get("https://49.234.88.43:443/wiki/spine/set");
		return axios.get("https://yiyuzi.top/wiki/spine/set");
	},
	
	getSpineList: (current, size) => {
		return axios.get("https://yiyuzi.top/wiki/spine/list?current="+current+"&size="+size);
	},
	
	/**开发接口**/
	getNullChineseNameSpineListCreator: (current, size) => {
		return axios.get("https://yiyuzi.top/wiki/spine/createlistNullCName?current="+current+"&size="+size);
	},
	
	/**开发接口**/
	getSpineListCreator: (current, size) => {
		return axios.get("https://yiyuzi.top/wiki/spine/createlist?current="+current+"&size="+size);
	},
	
	getSpineListByNameAndPage: (current, size, chineseName) => {
		return axios.get("https://yiyuzi.top/wiki/spine/list?current="+current+"&size="+size+"&chineseName=" + chineseName);
	},
	
	getSpineUrl: (fatherId, type) => {
		return "https://yiyuzi.top/wiki/spine/get?fatherId=" + fatherId + "&type=" + type;
	},
	
	updateSpineChineseName: (id, chineseName) => {
		return axios.get("https://yiyuzi.top/wiki/spine/update?id="+id+"&chineseName="+chineseName);
	},
}